package com.fnzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fnzx.entity.ScoreEntity;
import com.fnzx.util.PageUtils;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-10-23 22:20:00
 */
public interface ScoreService extends IService<ScoreEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean selfJudge(Long personalId, String scoreDetails);

    ScoreEntity getByScoreAndUser(Long scoredId, Long createdId);

    boolean personalScored(Long createdId, Long personalId, String scoreDetails);

    boolean enterpriseScored(Long createdId, Long enterpriseId, String scoreDetails);

    boolean testScored(Long personalId, Long enterpriseId, String scoreDetails);

    void removeByScoredId(Long projectId);
}

